<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head th:replace="common/comm :: head "></head>
<body>
<div class="wrapper">
    <header th:replace="common/comm :: header "></header>
    <div class="main-panel">
        <div class="content">
            <div class="container-fluid">
                <h4 class="page-title">
                    <font id="WOW_TRANSLATE_43" class="WOW_TRANSLATE_STYLE"
                          data--w-o-w_-i-n-d-e-x="43">培训管理 >> 新增培训计划</font>
                </h4>
                <div class="row">
                    <div class="col-md-12">
                        <div class="card">
                            <div class="card-body">
                                <form class="form-inline" th:action="@{/sys/train/addSave}" th:method="post"
                                      enctype="multipart/form-data">

                                    <div class="form-group">
                                        <label for="code"><font>培训名称:&nbsp;&nbsp; </font></label>
                                        <input type="text" class="form-control" id="title" name="title" oninvalid="setCustomValidity('请填写培训名称!')" oninput="setCustomValidity('')" value="">
                                        <small class="form-text text-muted"></small>
                                    </div>
                                    <div class="form-group">
                                        <label for="code"><font> 培训讲师:&nbsp;&nbsp; </font></label>
                                        <input type="text" class="form-control" oninvalid="setCustomValidity('请填写培训讲师名称!')" oninput="setCustomValidity('')" id="lecturer" name="lecturer" value="">
                                        <small class="form-text text-muted"></small>
                                    </div>
                                    <div class="form-group">
                                        <label for="code"><font> 培训日期:&nbsp;&nbsp; </font></label>
                                        <input type="date" class="form-control" id="startDate" oninvalid="setCustomValidity('请选择培训起始日期!')" oninput="setCustomValidity('')" name="startDate" value="">
                                        <label for="code"><font> 至:&nbsp;&nbsp; </font></label>
                                        <input type="date" class="form-control" oninvalid="setCustomValidity('请填写培训结束日期!')" oninput="setCustomValidity('')" id="endDate" name="endDate" value="">
                                        <small class="form-text text-muted"></small>
                                    </div>
                                    <div class="form-group">
                                        <label for="testrange"> 培训目的:&nbsp;&nbsp; </label>
                                        <textarea  class="form-control" rows="5" cols="105"  name="goal"></textarea>
                                        <small  class="form-text text-muted"></small>
                                    </div>
                                    <div class="form-group">
                                        <label for="testrange"> 参训人员:&nbsp;&nbsp; </label>
                                        <textarea  class="form-control" rows="5" cols="105"  name="personnel"></textarea>
                                        <small  class="form-text text-muted"></small>
                                    </div>
                                    <div class="form-group">
                                        <label for="testrange"> 培训简介:&nbsp;&nbsp; </label>
                                        <textarea  class="form-control" rows="5" cols="105"  name="intro"></textarea>
                                        <small  class="form-text text-muted"></small>
                                    </div>
                                    <div class="form-group">
                                        <label for="code"><font> 培训资料:&nbsp;&nbsp; </font></label>
                                        <input type="file"
                                               class="form-control"
                                               name="attach"
                                               value="">
                                        <small class="form-text text-muted"></small>
                                    </div>
                                    <input type="hidden" name="num" id="num" value="">
                                    <div class="form-group" style="text-align: center;">
                                        <input type="submit" class="btn btn-success" value="保存" th:onclick="changeNum(0)">
                                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                        <input type="submit" class="btn btn-success" value="申请审核" th:onclick="changeNum(1)">
                                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                        <input type="reset" class="btn btn-danger" value="重置">
                                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                        <input type="button" th:onclick="'javascript:history.go(-1);'" class="btn btn-danger"  value="返回" >
                                    </div>
                                </form>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <footer th:replace="common/comm :: footer "></footer>
</div>

</body>
<script type="text/javascript" th:src="@{/js_hr/train/train.js}"></script>
</html>


